import 'package:flutter/material.dart';

class FixedPharmacyQueryPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _FixedPharmacyState();
}

class _FixedPharmacyState extends State<FixedPharmacyQueryPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('定点零售药店信息查询'),
      ),
    );
   /* return Scaffold(
      appBar: AppBar(
        title: Text('定点零售药店信息查询'),
      ),
      body: Container(
        padding: EdgeInsets.all(width(30)),
        child: Column(
          children: [
            Row(
              children: [
                TitleAndInput(
                  title: '医药机构名称',
                  inputType: TextInputType.text,
                ),
                SizedBox(width: 15),
                _searchBtn(),
              ],
            ),
            _buildListViewHeader(),
            Expanded(
              child: Container(
                child: ListView.builder(
                  padding: EdgeInsets.all(0),
                  itemCount: 20,
                  itemBuilder: (context, index) {
                    return _buildListViewItem(index);
                  },
                ),
              ),
            ),
          ],
        ),
      ),
    );*/
  }

  //搜索按钮
  // Widget _searchBtn() {
  //   return Container(
  //     color: Color(u_2787de),
  //     width: 50,
  //     height: 25,
  //     child: OutlineButton(
  //       padding: EdgeInsets.all(0),
  //       child: Text(
  //         '搜索',
  //         style: TextStyle(
  //             color: Colors.white, fontSize: isLargeScreen ? 12.0 : 10.0),
  //       ),
  //       onPressed: () {},
  //     ),
  //   );
  // }

  //ListView Header
 /* Widget _buildListViewHeader() {
    return Container(
      height: 30,
      margin: EdgeInsets.only(top: 10),
      color: Color(u_bbd4ee),
      child: Row(
        children: <Widget>[
          dividerVertical(),
          Expanded(
            flex: 1,
            child: Text(
              '序号',
              style: TextStyle(fontSize: isLargeScreen ? 12 : 10),
              textAlign: TextAlign.center,
            ),
          ),
          dividerVertical(),
          Expanded(
            flex: 5,
            child: Text(
              '医药机构名称',
              style: TextStyle(fontSize: isLargeScreen ? 12 : 10),
              textAlign: TextAlign.center,
            ),
          ),
          dividerVertical(),
          Expanded(
            flex: 4,
            child: Text(
              '医药机构编码',
              style: TextStyle(fontSize: isLargeScreen ? 12 : 10),
              textAlign: TextAlign.center,
            ),
          ),
          dividerVertical(),
          Expanded(
            flex: 2,
            child: Text(
              '类型',
              style: TextStyle(fontSize: isLargeScreen ? 12 : 10),
              textAlign: TextAlign.center,
            ),
          ),
          dividerVertical(),
          Expanded(
            flex: 2,
            child: Text(
              '操作',
              style: TextStyle(fontSize: isLargeScreen ? 12 : 10),
              textAlign: TextAlign.center,
            ),
          ),
          dividerVertical(),
        ],
      ),
    );
  }*/

  //ListView Item
 /* Widget _buildListViewItem(int index) {
    return Container(
      color: (index % 2 == 0) ? Colors.white : Color(u_ffeff7fb),
      height: 30,
      child: Row(
        children: <Widget>[
          dividerVertical(),
          Expanded(
            flex: 1,
            child: Text(
              '${index + 1}',
              style: TextStyle(fontSize: isLargeScreen ? 12 : 10),
              textAlign: TextAlign.center,
            ),
          ),
          dividerVertical(),
          Expanded(
            flex: 5,
            child: Text(
              '益丰大药房',
              style: TextStyle(fontSize: isLargeScreen ? 12 : 10),
              textAlign: TextAlign.center,
            ),
          ),
          dividerVertical(),
          Expanded(
            flex: 4,
            child: Text(
              '110123456789011234',
              style: TextStyle(fontSize: isLargeScreen ? 12 : 10),
              textAlign: TextAlign.center,
            ),
          ),
          dividerVertical(),
          Expanded(
            flex: 2,
            child: Text(
              '连锁型',
              style: TextStyle(fontSize: isLargeScreen ? 12 : 10),
              textAlign: TextAlign.center,
            ),
          ),
          dividerVertical(),
          Expanded(
            flex: 2,
            child: FlatButton(
              onPressed: () {
                NavigatorUtils.push(context, HomeRouter.fixedPharmacyDetail);
              },
              child: Text(
                '操作',
                style: TextStyle(
                  fontSize: isLargeScreen ? 12 : 10,
                  color: Colors.blue,
                ),
              ),
            ),
          ),
          dividerVertical(),
        ],
      ),
    );
  }*/
}
